@prefix-cls: role-auth;
@prefix-otherCard: role-card;

.overflow() {
  overflow-y: hidden;
  overflow-x: hidden;
}

.@{prefix-cls} {
  &-row {
    width: 100%;
    height: 100%;
    .overflow();
    display: flex;
    flex-direction: column;
  }

  &-divBox {
    width: 100%;
    height: 100%;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  &-role-ColTitle {
    width: 100%;
    margin-bottom: 8px;
    // height: 8%;
  }

  &-role-ColContent {
    width: 100%;
    flex: auto;
    overflow: auto;
    // height: 80%;
  }

  &-role-ColBottom {
    width: 100%;
    margin-top: 8px;
    // height: 8%;
  }

  &-colBottom-div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0px;
  }

  // &-table {
  //   &-box {
  //     width: 100%;
  //     height: 100%;
  //     background: #ffffff;
  //     overflow: hidden;
  //     display: flex;
  //     flex-direction: column;
  //   }

  //   &-header {
  //     width: 100%;
  //     display: flex;
  //     padding: 0.5rem 1rem;
  //     align-items: center;
  //     justify-content: space-between;
  //   }

  //   &-search {
  //     display: flex;
  //     align-items: center;

  //     .ant-input-search {
  //       .ant-btn {
  //         border-color: #d9d9d9;
  //       }
  //     }
  //   }

  //   &-content {
  //     flex: auto;
  //     overflow: hidden;
  //     // padding: 0px 12px 12px 12px;
  //   }
  // }

  &-stepTitle {
    height: 100%;
    // padding: 0.75em;
    display: flex;
    align-items: center;
    // margin: 0px 30px;
    padding: 1rem 1.5rem;

    // .ant-steps-item-container {
    //   cursor: pointer;
    // }

    .ant-steps-item-title {
      //  font-size: 1.25rem;
      font-weight: 600;
    }

    // .ant-steps-item-title:hover {
    //   transform: scale(0.9);
    // }
  }

  &-rightCardAuthThree {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(1, 99%);
    grid-gap: 0.5rem;

    .ant-card-head {
      padding: 0px 10px;
      background-color: #f1f1f1;
      margin-bottom: 1px;

      .ant-card-head-title {
        padding: 8px 0px;
      }
    }

    .ant-card-body {
      padding: 0px;
    }

    .ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {
      color: #717171;
      align-items: center;
      overflow: hidden;
    }

    .ant-tree-node-content-wrapper {
      align-items: center;
      overflow: hidden;
      color: #000;
    }

    &-rightFather {
      padding: 5px 10px 0px 10px;
    }

    &-rightChild {
      width: 100%;
      background-color: #409eff0a;
      border-radius: 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #409eff;
      border: 1px solid rgba(160, 207, 255, 1);
    }

    &-rightChild:hover {
      box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 0.18);
    }

    &-rightChildIcon {
      display: flex;
      align-items: center;
    }

    &-detailCard {
      width: 100%;
      box-sizing: border-box;
      display: grid;
      grid-template-columns: repeat(4, 24%);
      grid-gap: 0.5rem;
    }

    &-detailCardChild {
      padding: 5px 10px;
      // text-align: center;
      // background-color: #409eff0a;
      border-radius: 4px;
      // color: #409eff;
      // border: 1px solid rgba(160, 207, 255, 1);
      display: flex;
      justify-content: flex-start;
      align-items: center;
    }
  }

  &-rightCardAuth {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(1, 99%);
    grid-gap: 0.5rem;

    .ant-card-head {
      padding: 0px 10px;
      background-color: #f1f1f1;
      margin-bottom: 1px;

      .ant-card-head-title {
        padding: 8px 0px;
      }
    }

    .ant-card-body {
      padding: 0px;
    }

    .ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {
      color: #717171;
      align-items: center;
      overflow: hidden;
    }

    .ant-tree-node-content-wrapper {
      align-items: center;
      overflow: hidden;
      color: #000;
    }

    &-rightFather {
      padding: 5px 10px 0px 10px;
    }

    &-rightChild {
      width: 100%;
      background-color: #409eff0a;
      border-radius: 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #409eff;
      border: 1px solid rgba(160, 207, 255, 1);
    }

    &-rightChild:hover {
      box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 0.18);
    }

    &-rightChildIcon {
      display: flex;
      align-items: center;
    }

    &-detailCard {
      width: 100%;
      box-sizing: border-box;
      display: grid;
      grid-template-columns: repeat(2, 49%);
      grid-gap: 0.5rem;
    }

    &-detailCardChild {
      padding: 5px 10px;
      // text-align: center;
      // background-color: #409eff0a;
      border-radius: 4px;
      // color: #409eff;
      // border: 1px solid rgba(160, 207, 255, 1);
      display: flex;
      justify-content: flex-start;
      align-items: center;
    }

    &-roleDetailCardChildBorder {
      padding: 5px 10px;
      text-align: center;
      background-color: #409eff0a;
      border-radius: 4px;
      color: #409eff;
      border: 1px solid rgba(160, 207, 255, 1);
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  // 其他步骤 card 组件样式
  &-step-cardRole {
    overflow: hidden;

    .ant-card-head {
      padding: 0px 10px;
      background-color: #f1f1f1;
      margin-bottom: 1px;

      .ant-card-head-title {
        padding: 8px 0px;
      }
    }

    .ant-card-body {
      padding: 0px;
    }

    .ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {
      color: #717171;
      align-items: center;
      overflow: hidden;
    }

    .ant-tree-node-content-wrapper {
      align-items: center;
      overflow: hidden;
      color: #000;
    }

    &-rightFather {
      padding: 5px 10px 0px 10px;
    }

    &-rightChild {
      width: 100%;
      background-color: #409eff0a;
      border-radius: 4px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #409eff;
      border: 1px solid rgba(160, 207, 255, 1);
    }

    &-rightChild:hover {
      box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 0.18);
    }

    &-rightChildIcon {
      display: flex;
      align-items: center;
    }

    // 第二步左侧 菜单
    &-secondLeftMenu {
      .ant-menu-inline {
        border-right: none;
      }
    }

    &-leftColMenu {
      height: 100%;
      padding: 10px 20px;
      border-right: 1px dashed #cecece;
    }

    &-rightColCard {
      height: 100%;
      padding: 10px 20px;
    }
  }

  // 解决左右选择modal 的下边框
  &-modalBottom {
    .ant-modal-footer {
      border-top: 0px;
    }
  }

  &-contentCard {
    height: 100%;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;

    .ant-card-head {
      // height: 5%;
      margin-bottom: 0px;
    }

    .ant-card-body {
      height: 90%;
      flex: auto;
      overflow: hidden;
    }
  }

  &-detailRoleInfo {
    :global {
      .ant-descriptions-view {
        border-radius: 0;

        .ant-descriptions-row {
          .ant-descriptions-item-label {
            word-break: keep-all;
            white-space: nowrap;
          }

          .ant-descriptions-item-content {
            word-break: break-all;
          }
        }
      }
    }
  }

  // 角色详情里的col样式

  &-roleDetailAll {
    .ant-radio-group {
      width: 100%;
      margin-bottom: 10px;

      .ant-radio-button-wrapper {
        width: 50%;
        text-align: center;
      }
    }

    &-roleDetailCol {
      height: 100%;
      width: 100%;
      padding-left: 10px;
    }

    &-roleColLeftBorder {
      border-right: 1px dashed #cecece;
      height: 100%;
      width: 100%;

      .ant-menu-inline {
        border-right: none;
      }
    }
  }
}
